// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @icon         https://www.google.com/s2/favicons?sz=64&domain=baidu.com
// @grant        GM_listValues
// @match        *
// ==/UserScript==

(function() {
    'use strict';
    function clearAllCookie() {
        var date=new Date();
        date.setTime(date.getTime()-10000);
        var keys=document.cookie.match(/[^ =;]+(?=\=)/g);
        console.log("需要删除的cookie名字："+keys);
        if (keys) {
            for (var i = keys.length; i--;){
                unsafeWindow.document.cookie=keys[i]+"=0; expire="+date.toGMTString()+"; path=/";
            }
        }
    }
    setInterval(function() { unsafeWindow.localStorage.clear();clearAllCookie();}, 500)
     console.log(unsafeWindow.localStorage)
    // Your code here...
})();